package com.example.tuike.common.utils;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/5 18:37

 * @Version 1.0*/
public class DateConverter {
    public static LocalDateTime convertToLocalDateTime(Date date) {
        // 将 java.util.Date 转换为 java.time.Instant
        return date.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
    }
}
